package dyyx;

import org.apache.zookeeper.ZooKeeper;

public class ZkUtils {
	
	// 10.57.239.116:2181,10.57.239.117:2181
	private static final String SERVERS = "127.0.0.1:2181";
	private static final int SESSIONTIMEOUT = 3000;
	
	public static ZooKeeper getClient()throws Exception{
		return new ZooKeeper(SERVERS, SESSIONTIMEOUT, null);
	}
	
	
	
	
	
}
